﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Forest.Lion.Domain.Contracts;
using Microsoft.Practices.ServiceLocation;
using Forest.Lion.Domain.Services;

namespace Forest.Lion.Web.Controllers
{
    public class DealController : AuthorizedController
    {
        public DealController(IUserServices userServices,
            IServiceLocator serviceLocator)
            : base(userServices, serviceLocator) {
        }

        public ActionResult Contracts(){
            var contracts = Using<DealAppService>().GetContractsForCompany(CurrentUserId);

            return View(contracts);
        }

        public ActionResult Deals() {
            var deals = Using<DealAppService>().GetDealsForCompany(CurrentUserId);

            return View(deals);
        }


    }
}
